package cz.data.gateway.admin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cz.data.gateway.model.dto.GatewayRouteVo;
import cz.data.gateway.model.dto.GatewayRouteQueryParam;
import cz.data.gateway.model.entity.GatewayRoute;

import java.util.List;

public interface IGatewayRouteService {

    GatewayRoute get(String id);

    boolean add(GatewayRoute gatewayRoute);

    boolean upsert(GatewayRoute gatewayRoute);

    List<GatewayRoute> releaseRouters();

    List<GatewayRouteVo> query(GatewayRouteQueryParam request);

    Page<GatewayRoute> page(GatewayRouteQueryParam request);

    boolean update(GatewayRoute gatewayRoute);

    boolean delete(String id);

    boolean overload();

    boolean changeStatus(String id, String status);
}
